package adv331;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

/**
 * @author oldliu
 * @since 1.0
 */
public class BuffWriterTesst {
    public static void main(String[] args) {
        try {
            BufferedWriter bw=new BufferedWriter(new FileWriter("d:/temp/111.txt"));
            for (int i = 0; i < 20; i++) {
                bw.write("教育改变生活");
                bw.newLine();
            }
            bw.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
